home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20030409-20031118
/
000305_nugulus@netscape.net_Fri Sep 26 10:10:38 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
4KB
|
96 lines
Article: 14549 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!newsfeed.media.kyoto-u.ac.jp!in.100proofnews.com!in.100proofnews.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr11.news.prodigy.com.POSTED!not-for-mail
From: Jun Zhang <nugulus@netscape.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.protocols.kermit.misc
Subject: Re: How to make use of a terminal server
References: <gQHcb.483$z11.142@newssvr22.news.prodigy.com> <bkvoe1$s9d$1@sesame.cc.columbia.edu>
In-Reply-To: <bkvoe1$s9d$1@sesame.cc.columbia.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 72
Message-ID: <1yXcb.179$Es7.165221468@newssvr11.news.prodigy.com>
NNTP-Posting-Host: 159.66.144.147
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr11.news.prodigy.com 1064584445 ST000 159.66.144.147 (Fri, 26 Sep 2003 09:54:05 EDT)
NNTP-Posting-Date: Fri, 26 Sep 2003 09:54:05 EDT
Organization: SBC http://yahoo.sbc.com
X-UserInfo1: F[OORT[E@BUYS_H]]RKB_UDAZZ\DPCPDLXUNNHXIJYWZUYICD^RAQBKZQTZTX\_I[^G_KGFNON[ZOE_AZNVO^\XGGNTCIRPIJH[@RQKBXLRZ@CD^HKANYVW@RLGEZEJN@\_WZJBNZYYKVIOR]T]MNMG_Z[YVWSCH_Q[GPC_A@CARQVXDSDA^M]@DRVUM@RBM
Date: Fri, 26 Sep 2003 13:54:05 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14549
Thanks a lot!
Jun
Frank da Cruz wrote:
> In article <gQHcb.483$z11.142@newssvr22.news.prodigy.com>,
> Jun Zhang <nugulus@netscape.net> wrote:
> : I have access to a terminal server where a modem pool is served.
> : Invokation of the modem is like the following,
> :
> : telnet hostname portnum
> : Username: (type name and return)
> : Password: (type pass and return)
> : atdtphonenumber
> :
> : I tried to use the following kermit script to automate the authentication,
> :
> : #!/usr/local/bin/kermit
> : def myuserid username
> : def mypasswd password
> : set carrier-watch off
> : set host hostname portnum
> :
> You need an "if failure" command here in case the connection fails.
>
> : for \%i 1 10 1 {
> : input 20 Username:
> : if success break
> : output \13
> : }
> : if > \%i 10 exit 1 No login prompt.
> : output \m(myuserid)\13
> :
> : for \%j 1 10 1 {
> : input 10 Password:
> : if success break
> : output \13
> : {
> :
> That should be a right brace.
>
> : if > \%j 10 exit No Password prompt.
> : output \m(mypasswd)\13
> : undef mypasswd
> :
> : but password is always prompted interactively. My immediate purpose is
> : to use the dial command in the kermit script, how can I do it?
> :
> I don't understand what you mean by "password is always prompted
> interactively". The password prompt is printed by the terminal server,
> correct? Therefore "input 10 Password:" should see it and succeed, and
> then the password will be sent by the "output \m(mypasswd)\13" command.
> Are you saying that this is not happening?
>
> Maybe you are using a secure version of C-Kermit and the terminal server
> is requesting a secure form of authentication, which causes C-Kermit to
> prompt for the password locally? To debug this, tell C-Kermit to "set
> telnet debug on".
>
> Anyway, after you have received the Password prompt and sent the password,
> you can:
>
> set modem type <name-of-modem>
> dial <phone-number>
> if fail (do something)
>
> Also see:
>
> http://www.columbia.edu/kermit/ckermit80.html#x14
>
> - Frank